/**
 * Copyright (C) 2022-2023
 * All rights reserved, Designed By www.tonetn.com
 */
package com.xunyin.modules.mp.service.mapper;

import com.xunyin.common.mapper.CoreMapper;
import com.xunyin.modules.mp.domain.YxArticle;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * @Author xunyinyunshang  <3594419785@qq.com>
 * @date 2020-05-12
 */
@Repository
public interface ArticleMapper extends CoreMapper<YxArticle> {
    @Update("update yx_article set visit=visit+1 " +
            "where id=#{id}")
    int incVisitNum(@Param("id") int id);

}
